﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataObjects.EntityFramework.ModelMapper;
using DataObjects.StandartInterfaces.Dictionary;

namespace DataObjects.EntityFramework.Implementation.Dictionary
{
    /// <summary>
    /// CustomerDao  class
    /// </summary>
    public class EntityRefTypeDao : IRefTypeDao
    {
        public List<BusinessObjects.BussinessDictionary.RefType> GetRefTypes()
        {
            using (var context = DataObjectFactory.CreateContext())
            {
                var result = context.RefTypes.ToList();
                return result.Map().ToList();
            }
        }
    }
}
